package com.huisu.netty.pojo;

import java.util.Date;

public class ChatModel {
    private Long userKey;

    private String msg;

    private Date sendTime;

    private Long target;

    //1表示自己，0表示别人,3表示系统
    private int type;

    //200表示连接,201表示私聊,202表示群聊,203表示广播，204表示所有在线的
    private int typeCode;

    public ChatModel(){};

    public ChatModel(Long userKey, String msg, Date sendTime, Long target, int type, int typeCode) {
        this.userKey = userKey;
        this.msg = msg;
        this.sendTime = sendTime;
        this.target = target;
        this.type = type;
        this.typeCode = typeCode;
    }

    public Long getUserKey() {
        return userKey;
    }

    public void setUserKey(Long userKey) {
        this.userKey = userKey;
    }

    public Long getTarget() {
        return target;
    }

    public void setTarget(Long target) {
        this.target = target;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }


    public int getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(int typeCode) {
        this.typeCode = typeCode;
    }
}
